<template>
	<web-view v-if="url" :src="url"></web-view>
</template>

<script lang="ts" setup>
	import { onLoad } from '@dcloudio/uni-app'
	import { shallowRef } from 'vue';

	const url = shallowRef('')
	
	onLoad(options => {
		url.value = options.url
		// window.open(options.url, '_self')
	})
</script>